/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * bzr_lagerverwaltung.java
 *
 * Created on 25.04.2011, 17:38:31
 */

package bzr_lagerverwaltung;

import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Flo
 */
public class bzr_lagerverwaltung extends javax.swing.JFrame {

    /** Creates new form bzr_lagerverwaltung */
    public bzr_lagerverwaltung() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButton_erstellen = new javax.swing.JButton();
        jButton_anzeigen = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jButton_erstellen.setText("Giveaway erstellen");
        jButton_erstellen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_erstellenActionPerformed(evt);
            }
        });

        jButton_anzeigen.setText("Giveaways anzeigen");
        jButton_anzeigen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_anzeigenActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addComponent(jButton_anzeigen)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 82, Short.MAX_VALUE)
                .addComponent(jButton_erstellen, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(29, 29, 29))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton_erstellen, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton_anzeigen, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(248, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton_erstellenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_erstellenActionPerformed
        try {
            // TODO add your handling code here:
            bzr_giveaway gi = new bzr_giveaway();
            gi.setVisible(true);
        } catch (InstantiationException ex) {
            Logger.getLogger(bzr_lagerverwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            Logger.getLogger(bzr_lagerverwaltung.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(bzr_lagerverwaltung.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jButton_erstellenActionPerformed

    private void jButton_anzeigenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_anzeigenActionPerformed
        // TODO add your handling code here:

    }//GEN-LAST:event_jButton_anzeigenActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new bzr_lagerverwaltung().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton_anzeigen;
    private javax.swing.JButton jButton_erstellen;
    // End of variables declaration//GEN-END:variables

}
